package com.example.netease.dao;

import com.example.netease.entity.Path;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

@Mapper
public interface PathDao {

    @Insert("insert into path (token) values (#{token})")
    int insertPath(String token);

    @Select("select * from path where token=#{token}")
    Path selectPath(String token);
}
